package cn.yunyichina.provider.base.dao;

import cn.yunyichina.provider.base.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

import java.util.List;
import java.util.Map;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-10-27 09:58:29
*/
@Repository
@MyBatisRepository
public interface OrderDao extends BaseDao<Order>{
	/**
	 * 修改订单状态
	 * @param orderNo
	 * @param orderStatus
	 */
	public void changeOrderStatus(@Param("orderNo") String orderNo,@Param("orderStatus") Short orderStatus);

	public Order selectByOrderNo(@Param("orderNo") String orderNo);

	/**
	 * 按订单号批量查询
	 * @param orderNos
	 * @return
     */
	public List<Order> selectByOrderNos(List<String> orderNos);

	/**
	 * 根据医生编码、挂号日期查询停诊订单
	 * @param map
	 * @return
     */
	List<Order> listStopOrderByDoctors(Map<String, String> map);

	List<Order> selectOrderRecordList(Map<String ,Object> map);
	Long selectCountOrderRecordList(Map<String ,Object> map);
}